package com.xiashitech.apiservice.service.impl;

import com.xiashitech.apiservice.dao.DataWaterMarkMapper;
import com.xiashitech.apiservice.dao.model.DataWaterMark;
import com.xiashitech.apiservice.service.IDataWaterMarkService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;

@Service
@RequiredArgsConstructor(onConstructor = @_(@Autowired))
public class DataWaterMarkServiceImpl implements IDataWaterMarkService {
    private final DataWaterMarkMapper dataWaterMarkMapper;

    @Override
    public int insertDataWaterMark(DataWaterMark dataWaterMark) {
        return dataWaterMarkMapper.insertDataWaterMark(dataWaterMark);
    }

    @Override
    public List<DataWaterMark> getDataWaterMarkList(DataWaterMark dataWaterMark) {
        return dataWaterMarkMapper.getDataWaterMarkList(dataWaterMark);
    }

    @Override
    public DataWaterMark getDataWaterMarkById(Long id) {
        return dataWaterMarkMapper.getDataWaterMarkById(id);
    }

    @Override
    public DataWaterMark getDataWaterMarkByRowSummary(String rowSummary) {
        return dataWaterMarkMapper.getDataWaterMarkByRowSummary(rowSummary);
    }
}
